/*
 * ContentPaneDelegate.h  0.4.0 / Nov 30, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef CONTENTPANEDELEGATE_H
#define CONTENTPANEDELEGATE_H

#include "Cute4jSwing.h"

#include "ContainerDelegate.h"

// ContentPane Class. ----------------------------------------------------------

/*!
 * \brief Content Pane Delegate.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT ContentPaneDelegate : public ContainerDelegate
{
protected:
  ContentPaneDelegate(JNIEnv *env, jobject obj);
public: // native calls
  static void initialize(JNIEnv *env, jclass cls);
  static jlong newInstance(JNIEnv *env, jobject obj);
public: // native callbacks
  QSize getLayoutPreferredSize();
private:
  static jmethodID sm_getLayoutPreferredSizeMID;
};

// Macro Definitions. ----------------------------------------------------------

#define CONTENT_PANE_DELEGATE (reinterpret_cast<ContentPaneDelegate *>(delegate))

#endif // CONTENTPANEDELEGATE_H
